<template>
  <div class="block">
    <div class="quality" :style="color[item.quality]">{{qualities[item.quality]}}</div>
    <img :src="item.img" alt="">
    <div class="title">{{ item.title }}</div>
    <div class="description">{{ item.description }}</div>
    <div class="exegesis">更新至{{ item.updateNum }}集</div>
  </div>
</template>

<script>
export default {
  name: "block",
  props: {
    item: Object
  },
  data(){
    return{
      qualities : ['首播', '独播'],
      color:[{color:'#FAB42EFF'},{color:'#fff'}]
    }
  }
}
</script>

<style scoped lang="scss">
.block {
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-top: 15px;
  img {
    width: 110px;
    height: auto;
  }

  .title {
    font-family: "SourceHanSansCN";
    color: rgb(49, 49, 49);
    margin-left: 3px;
  }

  .exegesis {
    position: absolute;
    margin-top: 107px;
    font-size: 8px;
    margin-left: 6px;
    font-family: "SourceHanSansCN";
    color: rgb(255, 255, 255);
    line-height: 2.737;


  }
  .quality{
    position: absolute;
    z-index: 100;
      font-family: "SourceHanSansCN";
      color: rgb(250, 180, 46);
    font-size: 12px;
    margin-left: 7px;
  }
  .description{
      font-size: 10px;
      font-family: "SourceHanSansCN";
      color: rgb(93, 93, 93);
      line-height: 2.053;
    margin-left: 3px;
    margin-top: -3px;
  }
}
</style>
